package com.sugar.psych.assessment.module.business.controller.admin.userpointsrecord.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.sugar.psych.assessment.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.sugar.psych.assessment.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户积分记录分页 Request VO")
@Data
public class UserPointsRecordPageReqVO extends PageParam {

    @Schema(description = "用户编号", example = "32035")
    private Long userId;

    @Schema(description = "用户手机号", example = "32035")
    private String mobile;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "变动类型（0减 1增）", example = "2")
    private Boolean type;

    /**
     * 积分变动分类（字典表：business_user_points_record_cls）
     */
    private String cls;

    @Schema(description = "积分变动数量")
    private Integer obtainedPoints;

    @Schema(description = "记录时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] recordTime;

    @Schema(description = "积分变动后，用户剩余总积分")
    private Integer totalPoints;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}